import instance from "./reques";
export let httpgetshoplist = () => {
    return instance.get('/shoplist')
}
export let httpaddshoplist = (obj) => {
    return instance.post('/shoplist', obj)
}
export let httpeaitshoplist = (obj) => {
    return instance.patch(`/shoplist/${obj.id}`, obj)
}
export let httpdelshoplist = (id) => {
    return instance.delete(`/shoplist/${id}`)
}
export let httpsearchshoplist = (title) => {
    return instance({
        url: "/shoplist",
        method: "get",
        params: title
    })
}